package cn.hanyx.coder.design.pattern.structural.bridge.info;

import cn.hanyx.coder.design.pattern.structural.bridge.info.Rule;

/**
 * AlertRule
 *
 * @author hanyx
 * @date 2020/05/18
 */
public class AlertRule {
    public Rule getMatchedRule(String api) {
        Rule rule = new Rule();
        rule.setMaxErrorCount(2);
        rule.setMaxTimeoutTps(33);
        rule.setMaxTps(444);
        return rule;
    }
}
